import request from '@/utils/request'

// 查询渠道商时段价格记录列表
export function listCompany_price(query) {
  return request({
    url: '/companyApi/price/list',
    method: 'get',
    params: query
  })
}


// 新增渠道商时段价格记录
export function addCompany_price(data) {
  return request({
    url: '/companyApi/price/add',
    method: 'post',
    data: data
  })
}

// 修改渠道商时段价格记录
export function updateCompany_price(data) {
  return request({
    url: '/companyApi/price/edit',
    method: 'put',
    data: data
  })
}

export function listCompany(query) {
  return request({
    url: '/companyApi/price/getCompany',
    method: 'get',
    params: query
  })
}

// 删除渠道商时段价格记录
export function delCompany_price(ids) {
  return request({
    url: '/companyApi/price/del/' + ids,
    method: 'delete'
  })
}
